package cn.wenlihelp.service;

import cn.wenlihelp.bean.Resources;
import cn.wenlihelp.bean.Role;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface RoleService {
    PageInfo<Role> findAll(int page,int limit,Role role);

    List<Role> findAll(Role role);

    List<Role> findByAccountId(Integer id);

    Role findById(Long id);

    boolean deleteByIds(Integer[] ids);

    boolean insert(Role role);

    boolean updateByPrimaryKey(Role role);

    void resourceMapping(Integer roleId,Integer[] resourceIds);
}
